import com.aliyuncs.exceptions.ClientException;
import com.blogSystem.sms.SmsApplication;
import com.blogSystem.sms.listener.SmsListener;
import com.blogSystem.sms.util.SmsUtil;

import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.concurrent.TimeUnit;
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = SmsApplication.class)
public class test {

    @Autowired
    private SmsUtil smsUtil;

    @org.junit.Test

    public void test() {
        try {
            smsUtil.sendSms("15828696101", "SMS_184621380","博客平台系统","12345");
        } catch (ClientException e) {
            e.printStackTrace();
        }
    }
}
